import { configureStore } from "@reduxjs/toolkit";
import questions from './models/questions'

const store = configureStore({
    reducer:{
      questions
    }
})
//  推导出整个store类型
export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch

export default store